package com.xxp.service.impl;

import com.xxp.entity.tesewenhua;
import com.xxp.mapper.WenhuaMapper;
import com.xxp.service.WenhuaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WenhuaServiceImpl implements WenhuaService {
    @Autowired
    private WenhuaMapper wenhuaMapper;
    @Override
    public tesewenhua selectById(Integer id) {
        tesewenhua tesewenhua = wenhuaMapper.selectById(id);
        return tesewenhua;
    }

    @Override
    public List<tesewenhua> selectAll() {
        List<tesewenhua> tesewenhuas = wenhuaMapper.selectAll();
        return tesewenhuas;
    }
}
